package com.tarena.sentinel.demo01.service;

import com.alibaba.csp.sentinel.Entry;
import com.alibaba.csp.sentinel.SphU;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.stereotype.Service;

@Service
public class HelloService {
    public String sayHi(String name) throws BlockException {
        Entry entry=null;
        entry= SphU.entry("reousrce02");
        return "hello ["+name+"],sentinel welcome";
    }
}
